package com.lc.service.impl;

import com.lc.bean.User;
import com.lc.dao.UserMapper;
import com.lc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User selectById(String id) {
        return userMapper.selectById(id);
    }

    @Override
    public boolean deletaByname(String name) {
        return userMapper.deletaByname(name);
    }

    @Override
    public boolean updateUser(User user) {
        return userMapper.updateUser(user);
    }

    @Override
    public boolean addUser(User user) {
        return userMapper.addUser(user);
    }

    @Override
    public User selectByname(String name) {
        return userMapper.selectByname(name);
    }
}
